package com.gooluke.mall.mail.listener;

import com.gooluke.mall.api.po.mail.TMessage;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Service;

/**
 * @author gooluke
 */
@Service
@Slf4j
@RocketMQMessageListener(topic = "messageTopic",consumerGroup = "product_group_message")
public class MessageConsumer implements RocketMQListener<TMessage> {
    @Override
    public void onMessage(TMessage message) {
      log.info("getMessage:{}",message);
    }
}
